package eu.szemraj.utils {
    import eu.szemraj.exception.UnsupportedOperationException;    
    
    public class AbstractClassEnforcer {
    	
    	
    	public static function enforce( instance:Object, type:Class ):void {
    		
    		if( instance.constructor == type )
    			throw new UnsupportedOperationException( type + " is an AbstractClass and can not be instantiated" );
        }
    	
    	
    }
}
